﻿using MapleLeaf.DataBase.Entity;
using SqlSugar;

namespace MapleLeaf.Model.CookBook.Organization.Entity {
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("sys_role", "用户角色")]
    public class RoleEntity : DataEntityBase {
        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnDescription = "名称")]
        public string Name { get; set; }
        /// <summary>
        /// 代码
        /// </summary>
        [SugarColumn(ColumnDescription = "代码")]
        public string Code { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnDescription = "排序")]
        public int Sort { get; set; }
        /// <summary>
        /// 数据权限
        /// </summary>
        [SugarColumn(ColumnName = "data_scope", ColumnDescription = "数据权限")]
        public int DataScope { get; set; }

    }
}